import React , {Component}from 'react';
import { Modal, Button } from 'antd';
import InputBox from '../../common/InputBox.js'
/*后台系统>新建企业>会员管理>新建会员>添加企业管理员*/

export default class Addcompanymanager extends React.Component {
    constructor(props){
        super(props);
        this.state = { visible: false }
        this.Style={};
    }

    componentWillMount() {
        this.Style.addcompanymanagerview={
            textAlign:"center",
            display:"block",
            border:"3px solid green"
        }
        this.Style.addcompanymanagerview.width = 400;
        this.Style.addcompanymanagerview.height = 200;
        this.Style.addcompanymanagerview.fontSize = 30;

        this.Style.addcompanymanagerview={
            width:"634px",
            height:"44px",
            paddingLeft:"18px",
            lineHeight:"44px",
            display:"block",
            background:"#f2f2f2",
            marginBottom:49
        }
    }

    state = { visible: false }
    showModal = () => {
        this.setState({
            visible: true,
        });
    }
    handleOk = (e) => {
        console.log(e);
        this.setState({
            visible: false,
        });
    }
    handleCancel = (e) => {
        console.log(e);
        this.setState({
            visible: false,
        });
    }
    addmanager(){}
    handleclick(){}

    render(){
        return (
            <Modal visible={this.state.visible} onOk={this.handleOk} onCancel={this.handleCancel} style={{width:"634px",height:"240px",display:"block"}} title={"添加管理员"}>
                <InputBox defaultvalute="请输入手机号" titletext="手机" space="12px" style={{width:338,height:30,borderColor:"#d7d7d7",color:"#999",marginTop:"20px",paddingRight:123}}/>
                <InputBox defaultvalute="请输入姓名" titletext="姓名" space="12px" style={{width:338,height:30,borderColor:"#d7d7d7",color:"#999",marginTop:"20px",paddingRight:123}}/>
                <InputBox type="password" defaultvalute="请输入密码" titletext="密码" space="12px" style={{width:338,height:30,borderColor:"#d7d7d7",color:"#999",marginTop:"20px",paddingRight:123}}/>
                <span style={{display:"block",color:"red",fontSize:"12px",marginLeft:"130px",marginTop:"23px",cursor:"pointer"}} onClick={this.handleclick.bind(this)}>(为他开通账号)</span>
            </Modal>
        )
    }
}





